package com.zuorenke.business;

import com.zuorenke.db.extend.Page;
import com.zuorenke.db.mybatis.LessonMapper;
import com.zuorenke.model.po.Lesson;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Z.R.K
 * @description
 * @create 2019-04-08 14:04:43
 **/
@Service
public class LessonService {
	@Resource
	private LessonMapper lessonMapper;
	
	public Lesson getLessonInfo(Long lessonId){
		return lessonMapper.getLessonById(lessonId);
	}
	
	public List<Lesson> getLessonsByDate(String startDate, String endDate, Page page){
		return lessonMapper.getLessonsByDate(startDate, endDate, page);
	}
	
	public Integer getLessonCntByDate(String startDate, String endDate){
		return lessonMapper.getLessonCntByDate(startDate, endDate);
	}
	
	
}
